package com.clkj.aimin.pojo.topic;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @author yawang
 */
@ApiModel( value ="t_cl_topic" )
@Table( name ="t_cl_topic" )
public class Topic  implements Serializable {

    @Id
   	@Column(name = "topic_id",updatable = false )
	@ApiModelProperty( value="null")
	private Integer topicId;

	/**
	 * 文章标题
	 */
   	@Column(name = "topic_title" )
	@ApiModelProperty( value="文章标题")
	private String topicTitle;

	/**
	 * 封面图
	 */
   	@Column(name = "topic_pic" )
	@ApiModelProperty( value="封面图")
	private String topicPic;

	/**
	 * 播放量
	 */
   	@Column(name = "topic_view" )
	@ApiModelProperty( value="播放量")
	private Integer topicView;

	/**
	 * 分类ID
	 */
   	@Column(name = "topic_categoryId" )
	@ApiModelProperty( value="分类ID")
	private String topicCategoryId;

	/**
	 * 类型0为文章 1为视频
	 */
   	@Column(name = "topic_type" )
	@ApiModelProperty( value="类型0为文章 1为视频")
	private Integer topicType;

	/**
	 * 关联医生ID 
	 */
   	@Column(name = "doctor_id" )
	@ApiModelProperty( value="关联医生ID ")
	private Integer doctorId;

	/**
	 * 文章内容
	 */
   	@Column(name = "topic_content" )
	@ApiModelProperty( value="文章内容")
	private String topicContent;

	/**
	 * 是否置顶 0为否 1为是
	 */
   	@Column(name = "zhiding" )
	@ApiModelProperty( value="是否置顶 0为否 1为是")
	private Integer zhiding;

	/**
	 * 排序
	 */
   	@Column(name = "order_num" )
	@ApiModelProperty( value="排序")
	private Integer orderNum;

    /**
     * 排序
     */
    @Column(name = "topic_status" )
    @ApiModelProperty( value="排序")
    private Integer topicStatus;



   	@Transient
   	private String categoryName;

    @Transient
    private String doctorName;

    @Transient
    private String doctorPic;



  public Integer getTopicId() {
    return topicId;
  }

  public void setTopicId(Integer topicId) {
    this.topicId = topicId;
  }


  public String getTopicTitle() {
    return topicTitle;
  }

  public void setTopicTitle(String topicTitle) {
    this.topicTitle = topicTitle;
  }


  public String getTopicPic() {
    return topicPic;
  }

  public void setTopicPic(String topicPic) {
    this.topicPic = topicPic;
  }


  public Integer getTopicView() {
    return topicView;
  }

  public void setTopicView(Integer topicView) {
    this.topicView = topicView;
  }


  public String getTopicCategoryId() {
    return topicCategoryId;
  }

  public void setTopicCategoryId(String topicCategoryId) {
    this.topicCategoryId = topicCategoryId;
  }


  public Integer getTopicType() {
    return topicType;
  }

  public void setTopicType(Integer topicType) {
    this.topicType = topicType;
  }


  public Integer getDoctorId() {
    return doctorId;
  }

  public void setDoctorId(Integer doctorId) {
    this.doctorId = doctorId;
  }


  public String getTopicContent() {
    return topicContent;
  }

  public void setTopicContent(String topicContent) {
    this.topicContent = topicContent;
  }


  public Integer getZhiding() {
    return zhiding;
  }

  public void setZhiding(Integer zhiding) {
    this.zhiding = zhiding;
  }


  public Integer getOrderNum() {
    return orderNum;
  }

  public void setOrderNum(Integer orderNum) {
    this.orderNum = orderNum;
  }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public String getDoctorPic() {
        return doctorPic;
    }

    public void setDoctorPic(String doctorPic) {
        this.doctorPic = doctorPic;
    }

    public Integer getTopicStatus() {
        return topicStatus;
    }

    public void setTopicStatus(Integer topicStatus) {
        this.topicStatus = topicStatus;
    }
}
